package criterios;

import domain.IP;
import domain.Paquete;

public class PorRangoIPOrigen extends PorRangoIP {
	public PorRangoIPOrigen(IP ipInicial, IP ipFinal) {
		super(ipInicial,ipFinal);
	}

	@Override
	public boolean aplicarCriterio(Paquete paquete) {
		return paquete.getIpOrigen().estaEnRango(getIpInicial(), getIpFinal());
	}
}
